<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .container {
      overflow: hidden;
    }
    .box1 {
      height: 200px;
      width: 400px;
      background-color: orange;

      margin-bottom: 40px;
    }

    .box2 {
      height: 150px;
      background-color: rebeccapurple;
      margin-top: 50px;
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="box1"></div>
  </div>
  <div class="box2"></div>
</body>
</html>